<template>
  <!-- <img alt="Vue logo" src="./assets/logo.png"> -->
   <div class="app_buttons">
     <el-button @click="urlFun">获取url</el-button>
     <el-button @click="goToGIS">/GIS</el-button>
   </div>
  <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
  <router-view />
</template>

<script>
//import HelloWorld from '@/views/map/map/GIS.vue';
//import HelloWorld from '@/views/three/three.vue';
//import HelloWorld from '@/components/HelloWorld_copy.vue';

export default {
  name: 'App',
  components: {
    //HelloWorld
  },
  methods: {
    urlFun() {
      const fullUrl = window.location.href;
      console.log('完整的 URL:', fullUrl);
    },
    goToGIS() {
      // 使用 Vue Router 进行编程式导航
      this.$router.push('/GIS/map');
    }
  }
}
</script>

<style>
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  width: 100%;
  height: 100%;
}
.app_buttons{
  position: fixed;
  top: 10px;
  right: 10px;
}
</style>
